home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / MW 8 2003 CD1.iso / Inside Macworld / Product News / gimp-1.2.4.sit / gimp-1.2.4 / plug-ins / perl / Module / Makefile.PL next >
Encoding:
Makefile  |  1999-05-19  |  536 b   |  23 lines

  1. use ExtUtils::MakeMaker;
  2.  
  3. chomp ($_gccflags = qx<glib-config --cflags glib gmodule>);
  4. chomp ($_gldflags = qx<glib-config --libs glib gmodule>);
  5.  
  6. do '../config.pl';
  7.  
  8. sub MY::postamble {
  9.    <<"EOF";
  10. clean ::
  11.     test -f Makefile || mv -f Makefile.old Makefile
  12. EOF
  13. }
  14.  
  15. WriteMakefile(
  16.     'NAME'    => 'Gimp::Module',
  17.     'VERSION_FROM' => '../Gimp.pm',
  18.     'INC'    => "$INC1 $GIMP_INC_NOUI $_gccflags $CPPFLAGS $CFLAGS",
  19.     'macro'    => \%cfg,
  20.     'DEFINE'    => "$DEFINE1 $DEFS",
  21.     dynamic_lib    => { OTHERLDFLAGS => "$LDFLAGS $LIBS $_gldflags" },
  22. );
  23.